package com.proxy;

/**
 * @author cyf
 * @description
 * @create 2018-09-20 14:49
 **/
public class UserDaoProxyImpl implements UserDao {

    private UserDao target;

    public UserDaoProxyImpl(UserDao userDao){
        this.target = userDao;
    }

    @Override
    public void save() {
        System.out.println("UserDaoProxyImpl.start!");
        target.save();
        System.out.println("UserDaoProxyImpl.end!");
    }

    public UserDao getTarget() {
        return target;
    }

    public void setTarget(UserDao target) {
        this.target = target;
    }
}
